<?php ob_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>会员系统</title>
	<link rel="stylesheet" href="style.css" />
</head>
<body>
	
	<?php
        
        // if(isset($_GET['index'])){
        // 	include $_GET['index'].'.inc.php';
        // }else{
        // 	include 'start.inc.php';
        // }
        
        //自动载入类文件
        function __autoload($className){

            require $className.'.class.php';
        }

       
        //实例化
        //先判断index值是否为空
        if(isset($_GET['index'])){
           
        	$_main = new Main($_GET['index']);  //传入index
        }else{
        	
        	$_main = new Main();  //为空就不传值
        }
       

        //这里只要运行就可以了
        $_main->_run();

	?>
	
</body>
</html>